﻿using System;
using UnityEngine;

// Token: 0x0200022E RID: 558
public class H_SE : MonoBehaviour
{
	// Token: 0x17000186 RID: 390
	// (get) Token: 0x06000F42 RID: 3906 RVA: 0x0006121C File Offset: 0x0005F41C
	public float Delay
	{
		get
		{
			return this.delay;
		}
	}

	// Token: 0x06000F43 RID: 3907 RVA: 0x00061224 File Offset: 0x0005F424
	private void Start()
	{
		this.gameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
	}

	// Token: 0x06000F44 RID: 3908 RVA: 0x00061234 File Offset: 0x0005F434
	public void Play_Insert(Female female)
	{
		Vector3 pos = Vector3.zero;
		pos = female.CrotchTrans.position;
		this.gameCtrl.audioCtrl.Play3DSE(this.clips.insert, pos);
	}

	// Token: 0x06000F45 RID: 3909 RVA: 0x00061270 File Offset: 0x0005F470
	public void Play_Piston(Female female, float speed)
	{
		Vector3 pos = Vector3.zero;
		pos = female.CrotchTrans.position;
		AudioClip clip = (!this.CheckHiSpeed(speed)) ? this.clips.piston01 : this.clips.piston00;
		this.gameCtrl.audioCtrl.Play3DSE(clip, pos);
	}

	// Token: 0x06000F46 RID: 3910 RVA: 0x000612CC File Offset: 0x0005F4CC
	public void Play_Crotch(Female female, float speed)
	{
		Vector3 pos = Vector3.zero;
		pos = female.CrotchTrans.position;
		AudioClip clip = (!this.CheckHiSpeed(speed)) ? this.clips.crotch01 : this.clips.crotch00;
		this.gameCtrl.audioCtrl.Play3DSE(clip, pos);
	}

	// Token: 0x06000F47 RID: 3911 RVA: 0x00061328 File Offset: 0x0005F528
	private bool CheckHiSpeed(float speed)
	{
		return speed >= this.hiSpeed;
	}

	// Token: 0x04000FE2 RID: 4066
	private GameControl gameCtrl;

	// Token: 0x04000FE3 RID: 4067
	public H_SE_Clips clips;

	// Token: 0x04000FE4 RID: 4068
	public H_Scene h_scene;

	// Token: 0x04000FE5 RID: 4069
	[SerializeField]
	private float delay = 0.1f;

	// Token: 0x04000FE6 RID: 4070
	[SerializeField]
	private float hiSpeed = 1f;
}
